clc,clear
nums=[4,8,16,32,64,128,256,512,1024,2048,4096];
for n=nums
x=rand(n);
dir='input_'+string(n);
mkdir(dir);
cd(dir);
fid=fopen('input.txt','wt');
fprintf(fid,'%g\n',n);

    for i=1:1:n
        for j=1:1:n
            if j==n
            fprintf(fid,'%g\n',x(i,j));
            else
            fprintf(fid,'%g\t',x(i,j));
            end
        end
    end
    cd('..');
end
fclose(fid);
